Conversation
Scans the freshly built images (default and alpine) in build.yml for fixable CRITICAL/HIGH CVEs and uploads SARIF to code scanning, and adds a weekly docker-scan workflow that scans the published openidentityplatform/openicf:latest/:alpine images. Mirrors OpenIdentityPlatform/OpenDJ#854, with aquasecurity/trivy-action pinned by commit SHA to match the pinning convention introduced in OpenIdentityPlatform#130.
|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds Docker image vulnerability scanning with Trivy, mirroring OpenIdentityPlatform/OpenDJ#854.
build.yml— bothbuild-dockerandbuild-docker-alpinejobs now scan the freshly built image (resolved from the local Docker daemon, so the runner'slinux/amd64manifest only) right after the Docker test step. Findings do not fail the build: the SARIF report is uploaded viacodeql-action/upload-sarif, so PRs get a "Code scanning results / trivy-build-*" check like CodeQL, and the full list lives in the Security tab. Only fixable CRITICAL/HIGH CVEs are reported (ignore-unfixed: truepluslimit-severities-for-sarif: true— without the latter the severity filter is silently dropped for SARIF output), and only the vulnerability scanner runs (scanners: vuln). The action's built-in ~1GB DB cache is disabled (cache: false) so it cannot evict them2-repositorycaches out of the repo's 10GB actions-cache quota. The two docker jobs getsecurity-events: write(scoped to just those jobs, since build.yml has no workflow-levelpermissions:block yet).docker-scan.yml(new) — weekly cron (30 5 * * 1) +workflow_dispatchscan of the publishedopenidentityplatform/openicf:latestand:alpineimages: new CVEs surface in already-released images (mostly via the base image) without any change in this repository. Unlike the build-time scan, unfixed CVEs are reported too. Reports are uploaded as SARIF with a separate category per tag (trivy-image-*, distinct from thetrivy-build-*categories inbuild.yml). The scheduled run is skipped in forks; manual runs are always allowed.aquasecurity/trivy-actionis pinned by commit SHA (v0.36.0), matching the pinning convention #130 is introducing for third-party actions in this repo. Future false positives / accepted findings can be suppressed via a.trivyignorefile in the repository root or dismissed in the Security tab.